projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a6d7d3
)
driver: ram: rockchip: rk3399: missing counter increment
author
Heinrich Schuchardt
<
[email protected]
>
Sun, 18 Mar 2018 11:10:55 +0000
(12:10 +0100)
committer
Philipp Tomsich
<
[email protected]
>
Wed, 28 Mar 2018 21:30:31 +0000
(23:30 +0200)
If we want to check the duration we need to increment the counter.
Signed-off-by: Heinrich Schuchardt <
[email protected]
>
Acked-by: Philipp Tomsich <
[email protected]
>
Reviewed-by: Philipp Tomsich <
[email protected]
>
drivers/ram/rockchip/sdram_rk3399.c
patch
|
blob
|
history
diff --git
a/drivers/ram/rockchip/sdram_rk3399.c
b/drivers/ram/rockchip/sdram_rk3399.c
index 76c1fe80a7fb2c1c900f24a39496d56b91a0d068..5cb470c209f24a0bbc2ea490c6ec8319e4d9af1a 100644
(file)
--- a/
drivers/ram/rockchip/sdram_rk3399.c
+++ b/
drivers/ram/rockchip/sdram_rk3399.c
@@
-1015,6
+1015,7
@@
static int switch_to_phy_index1(struct dram_info *dram,
writel(RK_CLRSETBITS(1 << 1, 1 << 1), &dram->cic->cic_ctrl0);
while (!(readl(&dram->cic->cic_status0) & (1 << 0))) {
mdelay(10);
+ i++;
if (i > 10) {
debug("index1 frequency done overtime\n");
return -ETIME;